class Emp :
    def __init__(self,name,year,per) -> None:
        self.__name = name
        self.__year = year
        self.__per = per
    def __cal_salary(self) :
        salary = self.__year * 3000 + self.__per
        return salary
    def print_salary(self) :
        print(f"{self.__name}的工资为{self.__cal_salary()}")
e1 = Emp("n",2,3000)
e1.print_salary()